$(function(){
	$(window).keydown(function(e){
		if(e.keyCode==116){
			window.frames[$("iframe").index($('iframe:visible'))].document.location.reload(); 
			return false;
		}
	});
	//兼容ie
	document.onkeydown=function(){
		if(window.event){
			if(event.keyCode==116){
				window.event.keyCode=0;  
				window.event.returnValue=false;
				window.frames[$("iframe").index($('iframe:visible'))].document.location.reload(); 
			}
		}		
	};
	$("#iframe_load").hide();
});
	
function addInfo(kind,str){
	var class_name="";
	var info_st="";
	switch(kind){
		case "waring":
			info_st="警告信息";			
			class_name="info_waring";
			break;
		case "error":
			info_st="错误信息";
			class_name="info_wrong";
			break;
		case "success":
			info_st="成功信息";
			class_name="info_success";
			break;
		case "cue":
			info_st="提示信息";
			class_name="info_cue";
			break;
	}
	str=str || info_st;
	var info_dom="<div class=\""+class_name+" info_message\"><p class=\"pull-left\"><strong>"+info_st+"</strong>"+str+"</p><a onclick=\"javascript:$(this).parent().remove();\" class=\"info_message_close pull-right\"> 关闭</a></div>";
	$("body").append(info_dom);	
	setTimeout(function(){$(".info_message").slideDown("slow");$(".info_message").remove();},3000);
}
function jsshow (msg ,callback ,icon) {alert(123);
	//icon info,error,success,question,warning
	BUI.Message.Alert(msg,callback,icon);
}
function jsconfirm (msg ,callback ,icon) {
	//icon info,error,success,question,warning
	BUI.Message.Confirm(msg ,callback ,icon);
}